import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;


public class DownloadPanel extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private JTable downloadTable;
	private DownloadTableModel model;

	public DownloadPanel(){
		model = new DownloadTableModel();
		downloadTable = new JTable(model);
		downloadTable.setFillsViewportHeight(true);
		downloadTable.setVisible(true);
		downloadTable.getColumnModel().getColumn(2).setCellRenderer(new ProgressRenderer());
		downloadTable.setColumnSelectionAllowed(false);
		this.add(new JScrollPane(downloadTable));
		
	}
	
	void test(){}
	
	public DownloadTableModel getModel() {
		return model;
	}
	
	public JTable getDownloadTable() {
		return downloadTable;
	}
}
